<?php

    if(!defined('BASEPATH'))
        exit('No direct script access allowed');

    $route['default_controller']="hotels";
    //$route['404_override']='rentacar';
	
	$route['404_override'] = 'my404';

    /* HOTELS */
    $route['(:any)/hotels/checkout']="hotels/checkout";

    
    /* CHECKOUT -> ORDER RESULT */
    $route['(:any)/checkout']="checkout/results";

    /* PAGES */
    $route['(:any)/about']="page/text_page/112";
    $route['(:any)/sitemap']="page/sitemap";
    $route['(:any)/news']="page/news";
    $route['(:any)/faq_rentacar']="page/text_page/123";
    $route['(:any)/faq_excursions']="page/text_page/131";
    $route['(:any)/faq_hotels']="page/text_page/130";
    $route['(:any)/howtobook']="page/text_page/134";
    $route['(:any)/staywithus']="page/text_page/135";
    $route['(:any)/contact']="page/text_page/122";
    $route['(:any)/news/(:any)']="page/read_news/$2";
    $route['(:any)/page/popup/(:any)']="page/popup/$2";
    $route['(:any)/map']="page/map";
    $route['(:any)/terms_conditions']="page/text_page/114";
    $route['(:any)/polices']="page/text_page/128";
    $route['(:any)/legal_mentions']="page/text_page/133";
    $route['(:any)/plans_your_trip']="page/text_page/127";

    /* MAIL LIST & CONTACT FORM */
    $route['(:any)/core/maillist_submit']="core/maillist_submit";

    /* RENTACAR */
    $route['(:any)/home']="rentacar/home";
    $route['(:any)/initialize']="rentacar/initialize";
    $route['(:any)/rentacar/available_fleet']="rentacar/available_fleet";
    $route['(:any)/rentacar/browse_fleet']="rentacar/browse_fleet";
    $route['(:any)/rentacar/get_car_quote/(:any)']="rentacar/get_car_quote/$2";
    $route['(:any)/rentacar/checkout/(:any)']="rentacar/checkout/$2";
    $route['(:any)/rentacar/set_extras']="rentacar/set_extras";
    $route['(:any)/rentacar/checkout_customer']="rentacar/checkout_customer";
    $route['(:any)/rentacar/checkout_show_order/(:any)']="rentacar/checkout_show_order/$2";
    $route['(:any)/rentacar/(:any)']="rentacar/car_details/$2";

    /* EXCURSIONS */
    $route['(:any)/excursions']="excursions/home";
    $route['(:any)/excursions/search']="excursions/get_all";
    $route['(:any)/excursions/check_available']="excursions/check_available";
    $route['(:any)/excursions/checkout/(:any)']="excursions/checkout/$2";
    $route['(:any)/excursions/checkout_customer']="excursions/checkout_customer";
    $route['(:any)/excursions/checkout_show_order/(:any)']="excursions/checkout_show_order/$2";
    $route['(:any)/excursions/(:any)']="excursions/details/$2";
    
    /* DESTINATIONS */
	$route['(:any)/destinations']="destinations/index";
    $route['(:any)/destinations/(:any)']="destinations/details/$2";

    // override: '/en/about' -> use controller 'about'
    $route['^me/(.+)$']="$1";
    $route['^ru/(.+)$']="$1";
    $route['^en/(.+)$']="$1";
    $route['^de/(.+)$']="$1";

    // '/en' and '/fr' -> use default controller
    $route['^me$']=$route['default_controller'];
    $route['^ru$']=$route['default_controller'];
    $route['^en$']=$route['default_controller'];
    $route['^de$']=$route['default_controller'];

    /* End of file routes.php */
    /* Location: ./application/config/routes.php */